<{* 用于管理后台被外部包含 *}>
    <div class="main">
        <!--菜单-->
        <div class="slider" id="slider" >
            <ul>
                <{$menu}>
            </ul>
        </div>

        <div  id="content" style="position: relative;margin-left: 191px;box-sizing: border-box;" >
            <iframe name="subContent" id="containerFrame" frameborder="0" scrolling="yes" style="width:100%;height: 100%;min-height: 600px" marginheight="0" marginwidth="0"></iframe>
        </div>
    </div>

<script>
    $('dd>a').on('click',function(){
        $('dd').removeClass("selected");
        $(this).parent().addClass("selected");
    });
    function resizeWindow(){
        $('#content').height($("body").height()-$('#header').height()-10);
    }
    $(document).ready(function(){
        resizeWindow();
    })
    $(window).resize(function(){
        resizeWindow();
    });

    function openLoading(){
        layer.msg('加载中，请稍候', {
            icon: 16,
            shade: [0.3, '#000'],
            time:10000
        });
    }

    function closeLoading() {
        layer.closeAll();
    }
</script>